Skip to content

London | 26-ITP-January | Damian Dunkley | Sprint 1 | coursework/sprint-1#949

Open
DamianDL wants to merge 21 commits intoCodeYourFuture:mainfrom
DamianDL:coursework/sprint-1
Open

London | 26-ITP-January | Damian Dunkley | Sprint 1 | coursework/sprint-1#949
DamianDL wants to merge 21 commits intoCodeYourFuture:mainfrom
DamianDL:coursework/sprint-1

Conversation

@DamianDL
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have completed the three mandatory exercises in sprint -1; the 4 exercises in 1-key-exercises, explained and corrected the 4 errors in 2-mandatory-errors and explained how the code works in 3-mandatory-interpret. I have not yet completed the 4-stretch-explore exercises, but understand that this is not critical for this PR.

I have used the reference documentation;
https://www.google.com/search?q=get+first+character+of+string+mdn
https://www.google.com/search?q=slice+mdn
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators

Questions

@DamianDL DamianDL added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 10, 2026
@MorganDavid MorganDavid added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 14, 2026
@DamianDL DamianDL added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 19, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 19, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@DamianDL DamianDL added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 19, 2026
@jennethydyrova jennethydyrova added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 20, 2026
Copy link
Contributor

@jennethydyrova jennethydyrova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DamianDL. Solid work! I left couple of comments as a stretch to explore how you could improve your code. Two comments in Sprint-1/3-mandatory-interpret/2-time-format.js file require changes.

const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = filePath.slice(lastSlashIndex + 1).split(".").pop();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could do this slightly simpler. Do you already have a variable that does filePath.slice(lastSlashIndex + 1)?

@@ -1,2 +1,4 @@
This is just an instruction for the first activity - but it is just for human consumption
We don't want the computer to run these 2 lines - how can we solve this problem? No newline at end of file
//This is just an instruction for the first activity - but it is just for human consumption
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little bit nitpicking here but we leave a space between // and your comment. That would be // Foo

This is just an instruction for the first activity - but it is just for human consumption
We don't want the computer to run these 2 lines - how can we solve this problem? No newline at end of file
//This is just an instruction for the first activity - but it is just for human consumption
//We don't want the computer to run these 2 lines - how can we solve this problem?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another, more conventional way to write multi-line comments is shown here: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Syntax/Comments#examples.

That said, this approach works as well.


// There are 6 variable declarations in this program. They are: movieLength, remainingSeconds, totalMinutes, remainingMinutes, totalHours, and result.
// b) How many function calls are there?
// There are 2 function calls in this program. They are: the template literal function call when assigning a value to the result variable (line 9) and the console.log function call on line 10.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 9 isn’t a function call, it’s just a template literal creating a string using backticks and ${} interpolation. No function is being executed there because there are no () parentheses.


// e) What do you think the variable result represents? Can you think of a better name for this variable?

// The variable result is the length of the movie in hours, minutes, and seconds. A better name for this variable could be movieDurationhms, as it more clearly indicates that it is the duration of the movie in hours, minutes, and seconds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your suggestion for variable name movieDurationhms is good but to follow the camelCase rule of naming variables, it would need to be movieDurationHms. I would suggest to simplify it to movieDuration as Hms is a bit cryptic and not very clear for a code reader.

@jennethydyrova jennethydyrova added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 20, 2026
@DamianDL DamianDL added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module Module-Structuring-And-Testing-Data The name of the module. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 21, 2026
@jennethydyrova jennethydyrova added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 23, 2026
@jennethydyrova
Copy link
Contributor

Good work!

@DamianDL
Copy link
Author

Hi @jennethydyrova. Thanks for reviewing my PR again. I am unclear what still needs correcting/updating/changing for this to be completed? Please can you help me understand what is outstanding? Thanks Damian

@jennethydyrova jennethydyrova added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 25, 2026
@jennethydyrova
Copy link
Contributor

Hi @DamianDL! Nope, I forgot to change the label. It should be all good now

@DamianDL
Copy link
Author

Thanks @jennethydyrova, great news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants